package com.spring.sjlong.dao;

import com.spring.sjlong.model.dto.UserDto;
import com.spring.sjlong.model.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> getUserList(UserDto userDto);

    User getUserById(@Param("id") Integer id);

    User getUserByName(@Param("name") String name);

    void addUser(User user);

    void updateUser(User user);

    void deleteUser(@Param("id") Integer id);
}
